home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / toolboxsas.lha / Toolbox / lib / lalr / Errors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  1.1 KB  |  42 lines

  1. #ifndef yyErrors
  2. #define yyErrors
  3.  
  4. /* $Id: Errors.h,v 2.6 1992/08/07 15:28:42 grosch rel $ */
  5.  
  6. #include "Positions.h"
  7.  
  8. #define xxNoText        0
  9. #define xxSyntaxError        1    /* error codes        */
  10. #define xxExpectedTokens    2
  11. #define xxRestartPoint        3
  12. #define xxTokenInserted    4
  13.  
  14. #define xxFatal        1    /* error classes    */
  15. #define xxRestriction        2
  16. #define xxError        3
  17. #define xxWarning        4
  18. #define xxRepair        5
  19. #define xxNote            6
  20. #define xxInformation        7
  21.  
  22. #define xxNone            0
  23. #define xxInteger        1    /* info classes        */
  24. #define xxShort        2
  25. #define xxLong            3
  26. #define xxReal            4
  27. #define xxBoolean        5
  28. #define xxCharacter        6
  29. #define xxString        7
  30. #define xxSet            8
  31. #define xxIdent        9
  32.  
  33.  
  34. extern void (*Errors_Exit)(void);
  35.  
  36. void ErrorMessage(short yyErrorCode, short yyErrorClass, tPosition yyPosition);
  37. void ErrorMessageI(short yyErrorCode, short yyErrorClass, tPosition yyPosition, short yyInfoClass, char * yyInfo);
  38. void Message(char * yyErrorText, short yyErrorClass, tPosition yyPosition);
  39. void MessageI(char * yyErrorText, short yyErrorClass, tPosition yyPosition, short yyInfoClass, char * yyInfo);
  40.  
  41. #endif
  42.